package com.controller;

import com.pojo.JdWarehouse;
import com.service.WarehouseService;
import com.vo.ResultVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;


/** 仓库
 * @author Sans
 */
@Controller
@RequestMapping ("warehouse")
@ResponseBody
public class WarehouseController {
    
    @Resource
    private WarehouseService warehouseService;
    
    @RequestMapping(value = "" , method = RequestMethod.GET)
    public ResultVo<JdWarehouse> queryByType(JdWarehouse warehouse){
        return new ResultVo<>(warehouseService.queryByType(warehouse));
    }
    
}
